/**
 * 转换树
 */
function transformTree(treeData){
    let data = treeData.map(item=>{
        item.title = item.name;
        if( item.children.length)
         item.children = transformTree(item.children)
         return item;
    })
    return data
}

export default {
    transformTree,
}